package com.fy56.platform.logistics.mapper;

import com.fy56.platform.logistics.common.mapper.IBaseMapper;
import com.fy56.platform.logistics.model.UserCompany;

import java.util.List;

public interface UserCompanyMapper extends IBaseMapper<UserCompany> {

    List<UserCompany> select(UserCompany record);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int insert(UserCompany record);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int insertSelective(UserCompany record);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    UserCompany selectByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int updateByPrimaryKeySelective(UserCompany record);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int updateByPrimaryKey(UserCompany record);

    /**
     * 删除数据
     *
     * @param record
     * @return
     */
    @Override
    int delete(UserCompany record);

    /**
     * 根据公司ID删除数据
     *
     * @param companyId
     * @return
     */
    int deleteByCompanyId(Long companyId);
}